{% load static %}
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    {% block title %}
		<title>后台</title>
    {% endblock title %}

    <link rel="stylesheet" type="text/css" href="{% static 'bootstrap/css/bootstrap.css' %}" />
    <link rel="stylesheet" type="text/css" href="{% static 'bootstrap/css/bootstrap-theme.css' %}" />
    <link rel="stylesheet" href="{% static 'common/css/default.css' %}" />
    <script src="{% static 'common/js/jquery.min.js' %}"></script>
    <script src="{% static 'bootstrap/js/bootstrap.js' %}"></script>

    {% block css %} {% endblock css %}
	<style type="text/css">
		body{
			padding-top: 70px;
		}
	</style>
</head>

<body>
	<!--nav导航条-->
	<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
		<div class="container">
			<div class="collapse navbar-collapse">
			    <ul class="nav navbar-nav">
                    {% block navbar %}
                        <li class="active"><a href="{% url 'main' %}">首页</a></li>
                        <li><a href="{% url 'set_profile' %}">设置</a></li>
                    {% endblock %}
			    </ul>

			    <ul class="nav navbar-nav navbar-right">
			   		<li class="dropdown">

                        <a data-toggle="dropdown" class="dropdown-toggle" role="button" href="#">
                            {% block username %}
                                <i class="glyphicon glyphicon-user"></i>
                            {% endblock %}
                            <i class="caret"></i>
                        </a>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="{% url 'user_logout' %}" tabindex="-1"><i class="glyphicon glyphicon-off"></i>退出</a>
                            </li>
                        </ul>
                    </li>
			    </ul>
  			</div>
		</div>
	</nav>
	<!--/nav导航条-->
	<div class="container">
		<div class="row">
            {% block sidebar %}
                <div id="sidebar" class="col-sm-3">

				</div>
            {% endblock %}

            {% block content %}
                <div id="content" class="col-sm-8">

				</div>
            {% endblock content %}
		</div>
	</div>

	<footer role="contentinfo" class="bs-docs-footer">
		<div class="container">

			<p>Copyrigh &copy;&nbsp; <span id="copyright"></span> tingyuge.</p>
		    <ul class="bs-docs-footer-links text-muted">
				<li><a href="#">tingyuge</a></li>
				<li>·</li>
				<li><a href="#">tingyuge</a></li>
				<li>·</li>
				<li><a href="#">tingyuge</a></li>
				<li>·</li>
				<li><a href="#">tingyuge</a></li>
				<li>·</li>
				<li><a href="#">tingyuge</a></li>
		    </ul>
		</div>
	</footer>


</body>

<script type="text/javascript">
	$(document).ready(function() {

		$('#copyright').text(function() {
			var now = new Date();
			return '2015 - ' + now.getFullYear();
		});

	});


</script>

{% block script %} {% endblock script %}

</html>